How To Install Discourse On CentOS 6.x
文章目录
NOTE: The Discourse team only officially supports running Discourse on Ubuntu with Docker, but we know some of you will want to run it on CentOS.
Run software updates:
sudo -s yum update -y yum install -y wget git
Enable EPEL repository so you can install some extra packages:
cd /tmp wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -Uvh epel-release-6*.rpm
Install Docker
sudo yum -y install docker-io
Start Docker as service
sudo service docker start
Configure Docker to start on startup
sudo chkconfig docker on
Install Discourse
install -g docker -m 2775 -d /var/docker git clone https://github.com/discourse/discourse_docker.git /var/docker cd /var/docker/ cp samples/standalone.yml containers/app.yml /var/docker/launcher bootstrap app
Start Discourse
/var/docker/launcher start app
In a Browser, go to: [Your IP Address]:80
For example: 192.168.0.10:80
end